#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# (c) Copyright 2010 - BidiX@BidiX.info
#
#
'''
    html - 
    
    Description :
 
     Usage :
     
'''
import re
from htmlentitydefs import codepoint2name, name2codepoint

def ustr(value):
  """Like str(), but UTF-8-encodes Unicode instead of failing."""
  try:
    return str(value)
  except UnicodeError:
    return unicode(value).encode('UTF-8')


from article import ArticlePage

